﻿@model OurWedding1.Models.Installment
@using OurWedding1

<fieldset>
    <legend>@Resources.Installments</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Amount)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Amount)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Deadline)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Deadline)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Guest)
    </div>
    <div class="display-field">
        @(Model.Guest == null ? @Resources.None : Model.Guest.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Expens)
    </div>
    <div class="display-field">
        @(Model.Expens == null ? @Resources.None : Model.Expens.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.isDone)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.isDone)
    </div>
    

</fieldset>
